<?php
declare (strict_types=1);

namespace app\common\queue\notify;

use app\common\service\BaseService;
use eduline\sms\Client;
use think\facade\Request;

class EventTicketSendSms
{
    public function run()
    {
        $phones       = Request::post('phones');
        $templateCode = Request::post('code');
        $var          = Request::post('var/a', []);
        $ret          = Client::send($phones, $var, ['TemplateCode' => $templateCode]);

        return BaseService::parseToData(['status' => $ret], 1);
    }
}